package Test4;

import Test2.Circle;
import Test2.Point;

public class test {
    public static void main(String[] args) {
       /* InheritPoint p1=new InheritPoint();
        InheritPoint p2=new InheritPoint(1,2);
        System.out.println(p2.toString());
        System.out.println(p1.equals(p2));
        System.out.println("======================");
        InheritCircle c1=new InheritCircle(p2,2);
        InheritCircle c2=new InheritCircle(p1,2);
        System.out.println(c1.toString());
        System.out.println(c1.equals(c2));*/

        InheritPoint p1=new InheritPoint();
        InheritPoint p2=new InheritPoint(0,10);
        System.out.println(p1.getX());
        System.out.println(p1.getY());
        System.out.println(p1.distance(p2));
        System.out.println("======================");
        InheritCircle c1=new InheritCircle();
        InheritCircle c2=new InheritCircle(0,0,10);
        System.out.println(c1.getCenterX());
        System.out.println(c1.getCenterY());
        System.out.println(c1.area());
        System.out.println(c1.perimeter());
        System.out.println(c1.relation(c2));
        System.out.println("======================");
        System.out.println(p1.toString());
        System.out.println("======================");
        System.out.println(c1.toString());
        System.out.println("======================");
        System.out.println(p1.equals(p2));
        System.out.println("======================");
        System.out.println(p1.equals(new InheritPoint(0,0)));
        System.out.println("======================");
        System.out.println(p1.equals(new Point(0,0)));
        System.out.println("======================");
        Point p=new Point();
        System.out.println(p.equals(new Point(0,0)));
        System.out.println("======================");
        InheritCircle c=new InheritCircle();
        System.out.println(c.equals(new InheritCircle(0,0,10)));
        System.out.println("======================");
        System.out.println(c.equals(new InheritCircle(0,0,0)));
        System.out.println("======================");
        InheritPoint pp=new InheritPoint(0,0);
        InheritCircle ic=new InheritCircle();
        InheritCircle ic2=new InheritCircle(p,0);
        System.out.println(ic.equals(ic2));
        System.out.println(ic.equals(p));
        System.out.println(p.equals(ic));
        System.out.println("======================");
        InheritCircle ic3=new InheritCircle(pp,0);
        System.out.println(ic.equals(ic3));
        System.out.println("======================");
        Circle cc=new Circle();
        System.out.println(ic.equals(cc));
        System.out.println(cc.equals(ic));
    }


}
